import { ApiProperty } from '@nestjs/swagger';
import { IsNotEmpty, IsString, IsOptional, IsBoolean } from 'class-validator';

export class CreateFavoriteDto {
  @IsNotEmpty({ message: '收藏夹名称不能为空' })
  @IsString()
  @ApiProperty({ description: '收藏夹名称' })
  name: string;

  @IsOptional()
  @IsString()
  @ApiProperty({ description: '收藏夹描述' })
  description?: string;

  @IsOptional()
  @ApiProperty({ description: '是否公开' })
  is_public?: number = 0;
}
